-- GENERATED SPELL FOR [Anger Guard] --


function spell0_16952(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(22911,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16952', 2307, 1)
end

function spell1_16952(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16952', 628, 1)
end

function Sorts_16952(pUnit, Event)
local choix_sorts_16952 = math.random(0, 1)
if choix_sorts_16952 == 0 then
pUnit:RegisterEvent('spell0_16952', 1, 1)
end
if choix_sorts_16952 == 1 then
pUnit:RegisterEvent('spell1_16952', 1, 1)
end
end

function mob16952_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16952', math.random(1500, 3000), 1)
end

function mob16952_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16952_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16952_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16952, 1, 'mob16952_Action')
RegisterUnitEvent(16952, 2, 'mob16952_Leave')
RegisterUnitEvent(16952, 3, 'mob16952_Kill')
RegisterUnitEvent(16952, 4, 'mob16952_Die')
